package cn.iocoder.yudao.module.nginxui.controller.admin.httpserver.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import cn.idev.excel.annotation.*;

@Schema(description = "管理后台 - Nginx HTTP下的Server块配置 Response VO")
@Data
@ExcelIgnoreUnannotated
public class HttpServerRespVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "22252")
    @ExcelProperty("主键ID")
    private Long id;

    @Schema(description = "HTTP配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1584")
    @ExcelProperty("HTTP配置ID")
    private Long httpId;

    @Schema(description = "监听端口", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("监听端口")
    private String listen;

    @Schema(description = "服务器名", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @ExcelProperty("服务器名")
    private String serverName;

    @Schema(description = "网站根目录")
    @ExcelProperty("网站根目录")
    private String root;

    @Schema(description = "默认索引文件")
    @ExcelProperty("默认索引文件")
    private String index;

    @Schema(description = "SSL证书路径")
    @ExcelProperty("SSL证书路径")
    private String sslCertificate;

    @Schema(description = "SSL私钥路径")
    @ExcelProperty("SSL私钥路径")
    private String sslCertificateKey;

    @Schema(description = "额外自定义配置")
    @ExcelProperty("额外自定义配置")
    private String extraServerConfig;

    @Schema(description = "排序号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("排序号")
    private Integer sort;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("状态")
    private Integer status;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}